package edu.zut.cs.javaee.manager.admin.service;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import edu.zut.cs.javaee.manager.admin.domain.Manager;
import edu.zut.cs.javaee.manager.base.service.GenericGenerator;

public class ManagerEntityGenerator extends GenericGenerator{

	ManagerManager managerManager;

	@Autowired
	public void setManagerManager(ManagerManager managerManager) {
		this.managerManager = managerManager;
	}
	
	@Test 
	public void gen_mamager() {
		for(int i=1;i<=4;i++) {
			Manager manager=new Manager();
			manager.setManager_name("manager_name_"+i);
			this.managerManager.save(manager);
		}
	
}
}
